package model.things;


public abstract class Thing {

	protected int xPos;
	protected int yPos;
	protected String label;
	protected String type;
	
	public Thing(String label,int x,int y){}
	
	public void put(int x,int y){
		xPos=x;
		yPos=y;
	}
	
	public String getLabel(){
		return label;
	}
	
	public String getType(){
		return type;
	}
	
	public int getX(){
		return xPos;
	}
	public int getY(){
		return yPos;
	}
	
	public boolean move(int xDir,int yDir){
		
		//assert xDir and yDir == 0, 1 or -1;
		if(xDir==1){
			xPos+=1;
		}
		else if (xDir==-1){
			xPos-=1;
		}
		if(yDir==1){
			yPos+=1;
		}
		else if (yDir==-1){
			yPos-=1;
		}
		return true;
	}
	
}
